/**
 * craete  by Jane
 * APP应用相关接口
 */
import { getAction, postAction, putAction } from './manage'

/**
 * 注册发送验证码
 * @param params {
 *     mobile : Number, 手机号
 *     type : Number, 类型 ： 1注册  2重置密码
 * }
 * @returns {Promise<*>}
 */
export const sendSMSForRegister = async (params) => {
  return await getAction('/sys/user/sendMessage',params);
}

/**
 * 验证发送短信的验证码
 * @param params {
 *
 * }
 * @returns {Promise<*>}
 */
export const verifyRegisterSMSCode = async (params) => {
  return await postAction('/sys/user/phoneVerification',params);
}

// 重置密码
export const resetPassword = async (params) => {
  return await getAction('/sys/user/passwordChangeByPhone',params);
}


